import { Field } from '@/dictionary/index.d';

/**
 * Created by liuzengrong on 2019/8/16.
 */

const common: Field[] = [
  {
    name: 'id',
    desc: '序号',
    dataType: 'number',
  },
  {
    name: 'creator',
    desc: '创建人',
    dataType: 'string',
  },
  {
    name: 'updator',
    desc: '修改人',
    dataType: 'string',
  },
  {
    name: 'creatTime',
    desc: '创建时间',
    dataType: 'number',
  },
  {
    name: 'updateTime',
    desc: '修改时间',
    dataType: 'number',
  },
  {
    name: 'status',
    desc: '状态',
    dataType: 'string',
  },
  {
    name: 'failReason',
    desc: '失败原因',
    dataType: 'string',
  },
  {
    name: 'supplierList',
    desc: '供应商',
    dataType: 'select',
    options: [
      {
        key: '',
        value: '请选择',
      },
      {
        key: '0',
        value: '供应商A',
      },
      {
        key: '1',
        value: '供应商B',
      },
    ],
  },
  {
    name: 'memo',
    desc: '备注',
    dataType: 'textarea',
  },
  {
    name: 'remark',
    desc: '备注',
    dataType: 'textarea',
  },
  {
    name: 'upload',
    desc: '上传文件',
    dataType: 'file',
  },
];

export default common;
